package com.frank.subject.infra.es.subject.entity;

import com.frank.config.es.config.annotation.FieldMapping;
import com.frank.subject.infra.es.subject.fields.SubjectInfoFields;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @author Frank Zou
 * @version v0.0.1
 * @date 2024/4/20
 * @description
 */
@Data
public class SubjectInfoEs {

    /**
     * 主键
     */
    @FieldMapping(SubjectInfoFields.ID)
    private Long id;

    /**
     * 题目名称
     */
    @FieldMapping(SubjectInfoFields.SUBJECT_NAME)
    private String subjectName;

    /**
     * 题目类型 1单选 2多选 3判断 4简答
     */
    @FieldMapping(SubjectInfoFields.SUBJECT_TYPE)
    private Integer subjectType;

    /**
     * 题目答案
     */
    @FieldMapping(SubjectInfoFields.SUBJECT_ANSWER)
    private String subjectAnswer;




    /**
     * 题目分数
     */
    @FieldMapping(SubjectInfoFields.SUBJECT_SCORE)
    private Integer subjectScore;

    /**
     * 创建人
     */
    @FieldMapping(SubjectInfoFields.CREATED_BY)
    private String createdBy;


    /**
     * 创建时间
     */
    @FieldMapping(SubjectInfoFields.CREATED_TIME)
    private Date createdTime;


    /**
     * 题目的标签ID
     */
    @FieldMapping(SubjectInfoFields.LABEL_ID_LIST)
    private List<Integer> labelIdList;

    /**
     * 题目分类ID
     */
    @FieldMapping(SubjectInfoFields.CATEGORY_ID_LIST)
    private List<Integer> categoryIdList;



    /**
     * 题目类型ID
     */
    private Long categoryId;

    /**
     * 题目标签ID
     */
    private Long labelId;
}
